package com.senlingspace.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.senlingspace.common.annotation.Excel;
import com.senlingspace.common.core.domain.BaseEntity;

/**
 * 分账比例-门店投资方关系对象 slkj_shop_investor
 *
 * @author SenlingSpace
 * @date 2024-07-15
 */
public class SlkjShopInvestor extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 门店ID */
    @Excel(name = "门店ID")
    private Long shopId;

    /** 投资方ID */
    @Excel(name = "投资方ID")
    private Long investorId;

    /** 投资金额(单位分) */
    @Excel(name = "投资金额(单位分)")
    private Long amount = (long) 0.0;

    /** 回本前分账比例 */
    @Excel(name = "回本前分账比例")
    private double investorBefore;

    /** 回本后分账比例 */
    @Excel(name = "回本后分账比例")
    private double investorAfter;

    /** 是否回本 */
    @Excel(name = "是否回本")
    private String isPrincipal;

    /**
     * TODO 已回本金额(注意：这个字段值=元*10000，使用的时候/10000=元)
     */
    @Excel(name = "已回本金额")
    private Long redemptionAmount = (long) 0.0;

    /** 删除表示（0代表存在 1代表删除） */
    private String delFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setShopId(Long shopId)
    {
        this.shopId = shopId;
    }

    public Long getShopId()
    {
        return shopId;
    }
    public void setInvestorId(Long investorId)
    {
        this.investorId = investorId;
    }

    public Long getInvestorId()
    {
        return investorId;
    }
    public void setAmount(Long amount)
    {
        this.amount = amount;
    }

    public Long getAmount()
    {
        return amount;
    }
    public void setInvestorBefore(Long investorBefore)
    {
        this.investorBefore = investorBefore;
    }

    public double getInvestorBefore()
    {
        return investorBefore;
    }
    public void setInvestorAfter(Long investorAfter)
    {
        this.investorAfter = investorAfter;
    }

    public double getInvestorAfter()
    {
        return investorAfter;
    }
    public void setIsPrincipal(String isPrincipal)
    {
        this.isPrincipal = isPrincipal;
    }

    public String getIsPrincipal()
    {
        return isPrincipal;
    }
    public void setRedemptionAmount(Long redemptionAmount)
    {
        this.redemptionAmount = redemptionAmount;
    }

    public Long getRedemptionAmount()
    {
        return redemptionAmount;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("shopId", getShopId())
            .append("investorId", getInvestorId())
            .append("amount", getAmount())
            .append("investorBefore", getInvestorBefore())
            .append("investorAfter", getInvestorAfter())
            .append("isPrincipal", getIsPrincipal())
            .append("redemptionAmount", getRedemptionAmount())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
